From: Ray Strode Date: Thu, 4 Apr 2013 20:36:56 +0000 (-0400) Subject: background: stop monitoring file after removing from cache X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4364 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0376f22d412a3df36a5627243ea97958179f1d00;p=gnome-shell.git background: stop monitoring file after removing from cache https://bugzilla.gnome.org/show_bug.cgi?id=697395 --- diff --git a/js/ui/background.js b/js/ui/background.js index 2dbde4ade..0e9c3aa95 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -126,6 +126,11 @@ const BackgroundCache = new Lang.Class({ }, removeImageContent: function(content) { + let filename = content.get_filename(); + + if (filename && this._fileMonitors[filename]) + delete this._fileMonitors[filename]; + this._removeContent(this._images, content); },